<template>
  <div ref="htmlWrap" class="agreement-wrap">
    <div class="agreement-content">
      <h2 class="title">用户注册协议</h2>
      <div class="agreement-html" v-html="html"></div>
    </div>
  </div>
</template>

<script>
import { fetchRegister } from "@/services/index";
export default {
  components: {},
  data() {
    return {
      html: ""
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {
    fetchRegister().then(res => {
      if (res.code === 1) {
        this.html = res.data
      }
    });
  },
  mounted() {},
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {},
  activated() {}
};
</script>
<style lang="less" scoped>
/* @import url(); 引入公共css类 */
@import url("./agreement.less");
</style>
